package com.ravi.model.vo;

import com.ravi.model.dto.CheckItemDto;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class CheckItemVo {

	private Integer itemId;

	private String itemName;

	private String itemSex;

	private String itemTypeName;

	private String roomType;

	private Integer checkTime;	// 检查时间

	private String limosisFlag; // 是否空腹

	private String joinFlag;	// 是否加入导检

	public CheckItemVo(CheckItemDto dto) {
		this.itemId = dto.getItemId();
		this.itemName = dto.getItemName();
		if (dto.getItemSex() == 0) {
			this.itemSex = "无";
		}else if (dto.getItemSex() == 1) {
			this.itemSex = "男";
		}else if (dto.getItemSex() == 2) {
			this.itemSex = "女";
		}
		this.itemTypeName = dto.getItemTypeName();
		this.roomType = dto.getRoomType();
		this.checkTime = dto.getCheckTime();
		if (dto.getJoinFlag() == 0) {
			this.joinFlag = "否";
		}else {
			this.joinFlag = "是";
		}
		if (dto.getLimosisFlag() == 0) {
			this.limosisFlag = "否";
		}else {
			this.limosisFlag = "是";
		}
	}
}
